home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7132 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Function Prototype placement in source files
  5. Date: Fri, 16 Feb 96 17:30:17 GMT
  6. Organization: none
  7. Message-ID: <824491817snz@genesis.demon.co.uk>
  8. References: <4g0obg$78b@barad-dur.nas.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4g0obg$78b@barad-dur.nas.com>
  15.            gldnspud@kali.nas.com "Matt Scott" writes:
  16.  
  17. >My question is this: is there a compelling reason not to prototype
  18. >functions above all of the functions using it, such as:
  19. >
  20. >float one(void);
  21. >void two(void);
  22.  
  23. No, there isn't. Putting function declarations within function is generally
  24. rather poor practice and to be avoided (and certainly not taught).
  25.  
  26. -- 
  27. -----------------------------------------
  28. Lawrence Kirby | fred@genesis.demon.co.uk
  29. Wilts, England | 70734.126@compuserve.com
  30. -----------------------------------------
  31.